3.3.59 \(\int \frac {(e+f x) \cos ^2(c+d x)}{a+a \sin (c+d x)} \, dx\) [259]

Optimal. Leaf size=51 \[ \frac {e x}{a}+\frac {f x^2}{2 a}+\frac {(e+f x) \cos (c+d x)}{a d}-\frac {f \sin (c+d x)}{a d^2} \]

[Out]

e*x/a+1/2*f*x^2/a+(f*x+e)*cos(d*x+c)/a/d-f*sin(d*x+c)/a/d^2

________________________________________________________________________________________

Rubi [A]
time = 0.04, antiderivative size = 51, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.115, Rules used = {4619, 3377, 2717} \begin {gather*} -\frac {f \sin (c+d x)}{a d^2}+\frac {(e+f x) \cos (c+d x)}{a d}+\frac {e x}{a}+\frac {f x^2}{2 a} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[((e + f*x)*Cos[c + d*x]^2)/(a + a*Sin[c + d*x]),x]

[Out]

(e*x)/a + (f*x^2)/(2*a) + ((e + f*x)*Cos[c + d*x])/(a*d) - (f*Sin[c + d*x])/(a*d^2)

Rule 2717

Int[sin[Pi/2 + (c_.) + (d_.)*(x_)], x_Symbol] :> Simp[Sin[c + d*x]/d, x] /; FreeQ[{c, d}, x]

Rule 3377

Int[((c_.) + (d_.)*(x_))^(m_.)*sin[(e_.) + (f_.)*(x_)], x_Symbol] :> Simp[(-(c + d*x)^m)*(Cos[e + f*x]/f), x]
+ Dist[d*(m/f), Int[(c + d*x)^(m - 1)*Cos[e + f*x], x], x] /; FreeQ[{c, d, e, f}, x] && GtQ[m, 0]

Rule 4619

Int[(Cos[(c_.) + (d_.)*(x_)]^(n_)*((e_.) + (f_.)*(x_))^(m_.))/((a_) + (b_.)*Sin[(c_.) + (d_.)*(x_)]), x_Symbol
] :> Dist[1/a, Int[(e + f*x)^m*Cos[c + d*x]^(n - 2), x], x] - Dist[1/b, Int[(e + f*x)^m*Cos[c + d*x]^(n - 2)*S
in[c + d*x], x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && IGtQ[n, 1] && EqQ[a^2 - b^2, 0]

Rubi steps

\begin {align*} \int \frac {(e+f x) \cos ^2(c+d x)}{a+a \sin (c+d x)} \, dx &=\frac {\int (e+f x) \, dx}{a}-\frac {\int (e+f x) \sin (c+d x) \, dx}{a}\\ &=\frac {e x}{a}+\frac {f x^2}{2 a}+\frac {(e+f x) \cos (c+d x)}{a d}-\frac {f \int \cos (c+d x) \, dx}{a d}\\ &=\frac {e x}{a}+\frac {f x^2}{2 a}+\frac {(e+f x) \cos (c+d x)}{a d}-\frac {f \sin (c+d x)}{a d^2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.29, size = 53, normalized size = 1.04 \begin {gather*} -\frac {(c+d x) (-2 d e+c f-d f x)-2 d (e+f x) \cos (c+d x)+2 f \sin (c+d x)}{2 a d^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[((e + f*x)*Cos[c + d*x]^2)/(a + a*Sin[c + d*x]),x]

[Out]

-1/2*((c + d*x)*(-2*d*e + c*f - d*f*x) - 2*d*(e + f*x)*Cos[c + d*x] + 2*f*Sin[c + d*x])/(a*d^2)

________________________________________________________________________________________

Maple [A]
time = 0.11, size = 78, normalized size = 1.53

method result size
risch \(\frac {e x}{a}+\frac {f \,x^{2}}{2 a}+\frac {\left (f x +e \right ) \cos \left (d x +c \right )}{a d}-\frac {f \sin \left (d x +c \right )}{a \,d^{2}}\) \(50\)
derivativedivides \(\frac {-f c \cos \left (d x +c \right )+e d \cos \left (d x +c \right )-f \left (\sin \left (d x +c \right )-\left (d x +c \right ) \cos \left (d x +c \right )\right )-f c \left (d x +c \right )+e d \left (d x +c \right )+\frac {f \left (d x +c \right )^{2}}{2}}{d^{2} a}\) \(78\)
default \(\frac {-f c \cos \left (d x +c \right )+e d \cos \left (d x +c \right )-f \left (\sin \left (d x +c \right )-\left (d x +c \right ) \cos \left (d x +c \right )\right )-f c \left (d x +c \right )+e d \left (d x +c \right )+\frac {f \left (d x +c \right )^{2}}{2}}{d^{2} a}\) \(78\)
norman \(\frac {\frac {2 e}{d a}+\frac {f \,x^{2} \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a}+\frac {f \,x^{2} \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a}+\frac {\left (d e +f \right ) x}{d a}-\frac {2 f \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a \,d^{2}}+\frac {\left (2 d e -2 f \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{a \,d^{2}}+\frac {\left (d e -f \right ) x \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d a}+\frac {\left (d e -f \right ) x \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d a}+\frac {\left (d e +f \right ) x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{d a}+\frac {f \,x^{2}}{2 a}+\frac {2 e x \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a}+\frac {2 e x \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a}+\frac {f \,x^{2} \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{2 a}+\frac {f \,x^{2} \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 a}+\frac {f \,x^{2} \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 a}+\frac {2 \left (d e -f \right ) \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a \,d^{2}}+\frac {2 \left (d e -f \right ) \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a \,d^{2}}}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{2} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}\) \(364\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((f*x+e)*cos(d*x+c)^2/(a+a*sin(d*x+c)),x,method=_RETURNVERBOSE)

[Out]

1/d^2/a*(-f*c*cos(d*x+c)+e*d*cos(d*x+c)-f*(sin(d*x+c)-(d*x+c)*cos(d*x+c))-f*c*(d*x+c)+e*d*(d*x+c)+1/2*f*(d*x+c
)^2)

________________________________________________________________________________________

Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 151 vs. \(2 (49) = 98\).
time = 0.49, size = 151, normalized size = 2.96 \begin {gather*} -\frac {4 \, c f {\left (\frac {1}{a d + \frac {a d \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}}} + \frac {\arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a d}\right )} - 4 \, e {\left (\frac {\arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a} + \frac {1}{a + \frac {a \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}}}\right )} - \frac {{\left ({\left (d x + c\right )}^{2} + 2 \, {\left (d x + c\right )} \cos \left (d x + c\right ) - 2 \, \sin \left (d x + c\right )\right )} f}{a d}}{2 \, d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x+e)*cos(d*x+c)^2/(a+a*sin(d*x+c)),x, algorithm="maxima")

[Out]

-1/2*(4*c*f*(1/(a*d + a*d*sin(d*x + c)^2/(cos(d*x + c) + 1)^2) + arctan(sin(d*x + c)/(cos(d*x + c) + 1))/(a*d)
) - 4*e*(arctan(sin(d*x + c)/(cos(d*x + c) + 1))/a + 1/(a + a*sin(d*x + c)^2/(cos(d*x + c) + 1)^2)) - ((d*x +
c)^2 + 2*(d*x + c)*cos(d*x + c) - 2*sin(d*x + c))*f/(a*d))/d

________________________________________________________________________________________

Fricas [A]
time = 0.36, size = 51, normalized size = 1.00 \begin {gather*} \frac {d^{2} f x^{2} + 2 \, d^{2} x e + 2 \, {\left (d f x + d e\right )} \cos \left (d x + c\right ) - 2 \, f \sin \left (d x + c\right )}{2 \, a d^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x+e)*cos(d*x+c)^2/(a+a*sin(d*x+c)),x, algorithm="fricas")

[Out]

1/2*(d^2*f*x^2 + 2*d^2*x*e + 2*(d*f*x + d*e)*cos(d*x + c) - 2*f*sin(d*x + c))/(a*d^2)

________________________________________________________________________________________

Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 326 vs. \(2 (41) = 82\).
time = 1.62, size = 326, normalized size = 6.39 \begin {gather*} \begin {cases} \frac {2 d^{2} e x \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{2 a d^{2} \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 2 a d^{2}} + \frac {2 d^{2} e x}{2 a d^{2} \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 2 a d^{2}} + \frac {d^{2} f x^{2} \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{2 a d^{2} \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 2 a d^{2}} + \frac {d^{2} f x^{2}}{2 a d^{2} \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 2 a d^{2}} + \frac {4 d e}{2 a d^{2} \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 2 a d^{2}} - \frac {2 d f x \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{2 a d^{2} \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 2 a d^{2}} + \frac {2 d f x}{2 a d^{2} \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 2 a d^{2}} - \frac {4 f \tan {\left (\frac {c}{2} + \frac {d x}{2} \right )}}{2 a d^{2} \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 2 a d^{2}} & \text {for}\: d \neq 0 \\\frac {\left (e x + \frac {f x^{2}}{2}\right ) \cos ^{2}{\left (c \right )}}{a \sin {\left (c \right )} + a} & \text {otherwise} \end {cases} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x+e)*cos(d*x+c)**2/(a+a*sin(d*x+c)),x)

[Out]

Piecewise((2*d**2*e*x*tan(c/2 + d*x/2)**2/(2*a*d**2*tan(c/2 + d*x/2)**2 + 2*a*d**2) + 2*d**2*e*x/(2*a*d**2*tan
(c/2 + d*x/2)**2 + 2*a*d**2) + d**2*f*x**2*tan(c/2 + d*x/2)**2/(2*a*d**2*tan(c/2 + d*x/2)**2 + 2*a*d**2) + d**
2*f*x**2/(2*a*d**2*tan(c/2 + d*x/2)**2 + 2*a*d**2) + 4*d*e/(2*a*d**2*tan(c/2 + d*x/2)**2 + 2*a*d**2) - 2*d*f*x
*tan(c/2 + d*x/2)**2/(2*a*d**2*tan(c/2 + d*x/2)**2 + 2*a*d**2) + 2*d*f*x/(2*a*d**2*tan(c/2 + d*x/2)**2 + 2*a*d
**2) - 4*f*tan(c/2 + d*x/2)/(2*a*d**2*tan(c/2 + d*x/2)**2 + 2*a*d**2), Ne(d, 0)), ((e*x + f*x**2/2)*cos(c)**2/
(a*sin(c) + a), True))

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 13408 vs. \(2 (51) = 102\).
time = 4.41, size = 13408, normalized size = 262.90 \begin {gather*} \text {Too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x+e)*cos(d*x+c)^2/(a+a*sin(d*x+c)),x, algorithm="giac")

[Out]

1/2*(d^2*f*x^2*tan(1/2*d*x)^3*tan(1/2*c)^5*tan(c)^2 - d^2*f*x^2*tan(1/2*d*x)^3*tan(1/2*c)^4*tan(c)^2 - d^2*f*x
^2*tan(1/2*d*x)^2*tan(1/2*c)^5*tan(c)^2 - 2*d^2*x*e*tan(1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 2*d*f*x*tan(1/2*d*x)^2*tan(1/2*c)^5 + 2*d*e*tan(1/2*d*x)
^3*tan(1/2*c)^5 + 16*d^2*x*e*tan(1/2*d*x)^3*tan(1/2*c)^2*tan(c) + 16*d^2*x*e*tan(1/2*d*x)^2*tan(1/2*c)^3*tan(c
) - 24*d*e*log(2*(tan(1/2*d*x)^4*tan(1/2*c)^2 - 2*tan(1/2*d*x)^4*tan(1/2*c) - 2*tan(1/2*d*x)^3*tan(1/2*c)^2 +
tan(1/2*d*x)^4 + 2*tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)^3 - 2*tan(1/2*d*x)*tan(1/2*c)^2 + 2*tan(1/2*d*
x)^2 + tan(1/2*c)^2 + 2*tan(1/2*d*x) + 2*tan(1/...

________________________________________________________________________________________

Mupad [B]
time = 2.94, size = 53, normalized size = 1.04 \begin {gather*} \frac {\frac {f\,x^2}{2}+e\,x}{a}-\frac {f\,\sin \left (c+d\,x\right )-d\,\left (e\,\cos \left (c+d\,x\right )+f\,x\,\cos \left (c+d\,x\right )\right )}{a\,d^2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((cos(c + d*x)^2*(e + f*x))/(a + a*sin(c + d*x)),x)

[Out]

(e*x + (f*x^2)/2)/a - (f*sin(c + d*x) - d*(e*cos(c + d*x) + f*x*cos(c + d*x)))/(a*d^2)

________________________________________________________________________________________